package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @authoer:xiantianrong
 * @createDate:2022/9/23
 * @description:
 */
@AllArgsConstructor
@Getter
public enum StockModelEnum {

    NUll(0,"无效值"),

    ON_THE_WAY(1,"on_the_way"),

    ON_THE_PUT_AWAY(2,"on_the_put_away"),

    AVAILABLE_STOCK(3,"available_stock"),

    REJECTS(4,"rejects"),

    DELIVERED(5,"delivered");

    @EnumValue
    private final Integer stockType;

    @JsonValue    //标记响应实际值
    private final String stockTypeDesc;
}
